package czk.concrent.threadpool.threadfactory;

/**
 * @Author:ChenZhangKun
 * @Date: 2023/4/8 15:20
 */
public class ThreadFactoryTest {
    public static void main(String[] args) {
        OwnThreadFactory ownThreadFactory=new OwnThreadFactory("czk");
        OwnThreadFactory ownThreadFactory1=new OwnThreadFactory("nzq");
        Thread czk = ownThreadFactory.newThread(() -> {
            System.out.println("czk");

        });
        System.out.println(czk.getName());
        Thread nzq = ownThreadFactory1.newThread(() -> {
            System.out.println("nzq");

        });
        System.out.println(nzq.getName());
    }
}
